package com.g5.edu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.g5.edu.mapper.DfTeachersInfoMapper;
import com.g5.edu.model.DfTeachersInfo;
import com.g5.edu.service.IDfTeachersInfoService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 老师信息 服务实现类
 * </p>
 *
 * @author admin
 * @since 2021-10-29
 */
@Service
public class DfTeachersInfoServiceImpl extends ServiceImpl<DfTeachersInfoMapper, DfTeachersInfo> implements IDfTeachersInfoService {
    @Autowired(required = false)
    private DfTeachersInfoMapper dfTeachersInfoMapper;


    @Override
    public List<DfTeachersInfo> getTeacherlist(Integer num) {

        return list() ;
    }

    @Override
    public PageInfo<DfTeachersInfo> getTeacherListPage(Integer pageNum, Integer pageSize) {

        PageHelper.startPage(pageNum,pageSize);
        List<DfTeachersInfo>list
           =dfTeachersInfoMapper.selectList(null);

        return new PageInfo<>(list);
    }


}
